﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;

namespace Database
{
    public static class RegHelper
    {
        private static RegistryKey _key = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64).OpenSubKey("SOFTWARE\\Werewolf");
        public static string GetRegValue(string key)
        {
            return _key.GetValue(key, "").ToString();
        }
        public static string DBConnString => GetRegValue("DBConnectionString");
    }
}
